class Rectangle:
    def __init__(self,width=0,height=0):
        self.width=width
        self.height=height

    def __setstr__(self,name,value):
        if name=='square':
            self.width=value
            self.height=value
        else:
            super().__setattr__(name,value)

    def getAare(self):
        return self.width*self.height
